<template>
  <div class="home">
    <img alt="Vue logo" src="../assets/logo.png" />
    <HelloWorld msg="Welcome to Your Vue.js App" />
    <van-button type="primary" @click="testToast">主要按钮</van-button>
    <p>这是测试字体大小</p>
    <Footer></Footer>
  </div>
</template>

<script>
// @ is an alias to /src
import HelloWorld from "@/components/HelloWorld.vue";
import Footer from "@/components/common/Footer.vue";
export default {
  name: "Home",
  components: {
    HelloWorld,
    Footer,
  },
  methods: {
    testToast() {
      this.$toast.success('提示文案');
    },
  },
};
</script>
